project(MYPROJECT)

add_executable(my_cmake_swap main.cpp swap.cpp)

cmake_minimum_required(VERSION 3.0)

project(CMAKE_OPENCV)

set(OpenCV_DIR D:/OpenCVInstall/opencv/build/x64/MinGW/install)

find_package(OpenCV REQUIRED)

include_directories(./include
                    ${OpenCV_INCLUDE_DIRS})

add_executable(cmake_opencv main.cpp src/filter)

target_link_libraries(cmake_opencv ${OpenCV_LIBS})